package com.silverbox.shopper.mapper;

import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.DecorationShopConfig;
import com.silverbox.shopper.entity.DecorationShopConfigWithBLOBs;

public interface DecorationShopConfigMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DecorationShopConfigWithBLOBs record);

    int insertSelective(DecorationShopConfigWithBLOBs record);

    DecorationShopConfigWithBLOBs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DecorationShopConfigWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(DecorationShopConfigWithBLOBs record);

    int updateByPrimaryKey(DecorationShopConfig record);
    
    /**
	 * 获取扫码下单店铺装修默认配置信息
	 * @return Map
	 * @author yxy
	 * @date 2018年1月24日
	 */
	Map<String, Object> getShopperRenovationDefaultConfig(@Param("decorationType")int decorationType);
	
	/**
	 * 根据主店铺帐号查询扫码下单店铺装修风格
	 * 
	 * @param shopperId
	 * @return List
	 * @author yxy
	 * @date 2018年1月24日
	 */
	String getShopperRenovationByShopperId(@Param("id")Long configId,@Param("decorationType")Integer decorationType);

	/**
	 * 获取店铺装修具体某一个功能
	 */
	Integer getShopperRenovationPage(@Param("pageCode") String pageCode, @Param("componentCode") String componentCode,
			@Param("decorationType") int decorationType);

	/**
	 * 获取店铺装修自定义具体某一功能
	 * @param storeId
	 * @param pageCode
	 * @param componentCode
	 * @return
	 */
	Integer getShopperRenovationCustomPage(@Param("storeId") Integer storeId, @Param("pageCode") String pageCode,
			@Param("componentCode") String componentCode, @Param("decorationType") int decorationType);
}